package com.qiezikaka.kaka.view;

import java.util.ArrayList;
import java.util.List;

import jp.co.cyberagent.android.gpuimage.GPUImageFilter;
import jp.co.cyberagent.android.gpuimage.GPUImageFilterGroup;

public class GPUMirrorFilter extends GPUImageFilterGroup {

    private static final String MIRROR_FRAGMENT_SHADER = "" +
            "precision mediump float;\n" +
            "varying vec2 textureCoordinate;\n" +
            "uniform sampler2D inputImageTexture;\n" +
            "void main() {\n" +
            "   vec2 mirrorCoord = vec2(1.0 - textureCoordinate.x, textureCoordinate.y);\n" +
            "   gl_FragColor = texture2D(inputImageTexture, mirrorCoord);\n" +
            "}\n";

     List<GPUImageFilter> mFilters = new ArrayList<GPUImageFilter>();

    public GPUMirrorFilter(GPUImageFilter ImageFilter) {
        mFilters.add(ImageFilter);
//        super(NO_FILTER_VERTEX_SHADER, MIRROR_FRAGMENT_SHADER);
    }

    @Override
    public void addFilter(GPUImageFilter aFilter) {
        super.addFilter(aFilter);
    }
}
